<?php
/**
 * author      :chenwenwen
 * createTime  :2020-04-05 22:18
 * description :
 */
namespace app\common\business;
use app\common\model\mysql\Demo as DemoModel;
class Demo {

    /**
     * 通过getDemoDataByCategoryId获取数据
     * @param $category_id
     * @param int $limit
     * @return mixed
     */
    public function getDemoDataByCategoryId($category_id, $limit = 10) {
        $demo = new DemoModel();
        $results = $demo->getDemoByCategoryId($category_id,$limit);
        return $results;
    }
}